package com.yaoxun.console.xo.resp;

import java.util.Collection;
import java.util.List;

public class CollectionResp<T> {

    private Collection<T> list;
    
    public CollectionResp(Collection<T> list) {
        super();
        this.list = list;
    }

    public CollectionResp() {
        super();
    }
    
    public static <T> CollectionResp<T> of(Collection<T> list) {
        return new CollectionResp<>(list);
    }

	public Collection<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}

	@Override
	public String toString() {
		return "CollectionResp [list=" + list + "]";
	}
    
}
